package com.inforich.app.api.service;

import com.inforich.app.api.dto.DriverDTO;
import com.inforich.app.component.LoginUser;
import com.inforich.app.component.LoginUserApp;
import com.inforich.common.core.domain.AjaxResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description: some desc
 * @author: HJM
 * @date: 2022/10/31
 */
public interface IAppDriverService {

  /**
   * 添加车辆
   */
  AjaxResult addDriver(LoginUserApp loginUserApp, DriverDTO dto);

  /**
   * 添加车辆
   */
  AjaxResult updateDriver(LoginUserApp loginUserApp, DriverDTO dto);

  /**
   * 删除车辆
   */
  AjaxResult removeDriver(LoginUserApp loginUserApp, Long id);

  /**
   * 车辆详情
   */
  AjaxResult getDriver(LoginUserApp loginUserApp, Long id);
}
